package com.db.patterns.singleton.demo08;

import com.db.patterns.singleton.demo05.Singleton;

import java.lang.reflect.Constructor;

public class Client {
    public static void main(String[] args) throws Exception {
//        Class<Singleton> singletonClass = Singleton.class;
//        Constructor<Singleton> constructor = singletonClass.getDeclaredConstructor();
//        constructor.setAccessible(true);
//        Singleton singleton1 = constructor.newInstance();
//        Singleton singleton2 = constructor.newInstance();
//        System.out.println(singleton1 == singleton2);
        com.db.patterns.singleton.demo06.Singleton instance1 = com.db.patterns.singleton.demo06.Singleton.INSTANCE;

    }
}
